import os

path = 'C://Users//ypp//Desktop//新建文件夹 - 副本/'
file_name = os.listdir(path)
count = 0
for name in file_name:
    count += 1
    new_name = 'student' + str(count) + '.docx'
    os.rename(path + name, path + new_name)
    print(new_name)
